/* =========================================
   📦 MAIN (RESPETA GLOBAL)
========================================= */

main.content {
    flex: 1;
    margin: 20px auto;
    padding: 40px;
    width: 80%;
    max-width: 1400px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    box-shadow: var(--sombra-hover);
}

body {
    background-image: url('../Imagenes_y_Archivos/FondodepantallaP2.png');
}

/* =========================================
   🏷️ TITULO
========================================= */

h1 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--blanco);
}

/* =========================================
   🔎 FORMULARIO
========================================= */

.formulario-busqueda {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.formulario-busqueda label {
    font-weight: bold;
    color: var(--blanco);
}

.formulario-busqueda input[type="text"],
.formulario-busqueda select {
    padding: 7px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.formulario-busqueda input[type="text"] {
    min-width: 300px;
}

.formulario-busqueda select {
    min-width: 180px;
}

/* Botón usando sistema global */

.formulario-busqueda button {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    padding: 8px 16px;
}

.formulario-busqueda button:hover {
    background-color: var(--azul-hover);
}

/* =========================================
   📊 RESULTADOS
========================================= */

#resultados {
    font-size: 18px;
    color: var(--blanco);
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

/* =========================================
   📋 TABLA
========================================= */

.tabla-resultados-container {
    overflow-x: auto;
}

#tabla-resultados {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--negro);
}

#tabla-resultados th,
#tabla-resultados td {
    padding: 8px 12px;
    border: 1px solid #bbb;
    text-align: center;
    font-size: 14px;
}

#tabla-resultados th {
    background-color: var(--azul-medio);
    color: var(--blanco);
}

#tabla-resultados tbody tr:nth-child(even) {
    background-color: #e6e6e6;
}

/* =========================================
   🗺️ MAPA
========================================= */

#map {
    width: 100%;
    height: 500px;
    border: 2px solid var(--azul-medio);
    border-radius: 5px;
    margin-top: 20px;
    margin-bottom: 20px;
    z-index: 1;
}

.leaflet-container {
    width: 100%;
    height: 100%;
}

/* País resaltado */

.leaflet-interactive.pais-resaltado {
    fill: var(--rojo) !important;
    fill-opacity: 0.5 !important;
    stroke: var(--rojo) !important;
    stroke-width: 2 !important;
}